package action;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletResponse;

import org.apache.struts2.ServletActionContext;

import service.tDeviceService;

public class DeletetDeviceAction {
	
	private tDeviceService tdeviceService;
	
	public String delete() throws IOException{
		
		ServletResponse response = ServletActionContext.getResponse();
		response.setCharacterEncoding("utf-8");
		PrintWriter out = response.getWriter();
		
		tdeviceService.dalete();
		
		return null;
	}

	public tDeviceService getTdeviceService() {
		return tdeviceService;
	}

	public void setTdeviceService(tDeviceService tdeviceService) {
		this.tdeviceService = tdeviceService;
	}
	
	

}
